package List;

public class LinkedListQueue {
    public static void main(String[] args) {
        QueueDemo q = new QueueDemo();
        q.addElement("元素1");
        q.addElement("元素2");
        q.addElement("元素3");
        while (!q.isNull()) {
            System.out.println(q.getElement());
        }
    }
}
